package com.lovo.service.impl;

import com.lovo.dao.IClassDAO;
import com.lovo.model.ClassDO;
import com.lovo.service.IClassService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Description:
 *
 * @author LiuChengQi
 * @date Created on 2020/11/19
 */
@Service
public class ClassService implements IClassService {
    @Resource
    private IClassDAO dao;
    @Override
    public void save(ClassDO classDO) {
        dao.save(classDO);
    }

    @Override
    public void remove(String id) {
        dao.deleteById(id);
    }

    @Override
    public void update(ClassDO classDO) {
        dao.save(classDO);
    }

    @Override
    public List findAll() {
        return dao.findAll();
    }
}
